package com.zudada.servermain.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zudada.servermain.POJO.DTO.PortFacilityAddDTO;
import com.zudada.servermain.POJO.DTO.PortFacilityQueryDTO;
import com.zudada.servermain.POJO.DTO.PortFacilityUpdateDTO;
import com.zudada.servermain.POJO.VO.PortFacilityVO;
import com.zudada.servermain.POJO.entity.PortFacility;

import javax.validation.Valid;
import java.util.List;

public interface PortFacilityService extends IService<PortFacility> {
    /**
     * 增添港口设施
     * @param dto
     * @return
     */
    boolean addPortFacility(PortFacilityAddDTO dto);
    /**
     * 根据ID删除港口设施
     * @param facilityId 设施ID
     */
    void deleteById(String facilityId);

    boolean updatePortFacility(@Valid PortFacilityUpdateDTO dto);

    List<PortFacilityVO> listPortFacilities(PortFacilityQueryDTO queryDTO);
}
